package com.cn.designpatterns.ex.again.ex.prototype;

/**
 * @author: zhangyi
 * @date: 2019/1/9 09:50
 * @description:
 */
public class ResumeTest {


    public static void main(String[] args) throws CloneNotSupportedException {
        Resume resume = new Resume("名字","2018-7","1",new Prototype("009","119"));
        Resume clone = (Resume)resume.clone();

        clone.setName("1");
        clone.setGraduation("2");
        clone.setSex("0");
        clone.setPrototype(new Prototype("000","110"));
        System.out.println(clone);
        System.out.println(resume);

    }
}
